package
{
	import flash.display.GradientType;
	import flash.display.Graphics;
	import flash.geom.Matrix;
	
	import remote.controls.Component;
	import remote.skins.EmptySkin;
	import remote.skins.ISkin;
	
	
	/**
	 *
	 * @author 银魂飞雪
	 * @createDate 2011-3-9
	 */
	public class TempSkin extends EmptySkin implements ISkin
	{
		public function TempSkin()
		{
			super();
		}
		
		override public function draw(target:Component):void
		{
			var g:Graphics = target.graphics;
			g.clear();
			var m:Matrix = new Matrix();
			m.createGradientBox(target.width, target.height, Math.PI / 2);
			//g.lineStyle(0, 0xff0000);
			g.beginGradientFill(GradientType.LINEAR, [0xffffff, 0xaaaaaa, 0x009900, 0x00ff00], [0.6, 0.6, 0.6, 0.6], [0, 125, 125 ,255], 
				m);
			g.drawRect(0, 0, target.width, target.height);
			g.endFill();
		}
	}
}